export default [
  {
    path: '/login',
    name: 'login',
    component: './User/Login',
  },
  {
    path:'/',
    name: 'login',
    component: './User/Login',
  },
  //导航
  {
    path: '/home',
    name: 'home',
    component: './Home/Index',
  },
  //园林
  {
    path: '/landspace',
    name: 'landspace',
    component: '../layouts/LayoutLandspace',
    Routes: ['src/pages/Authorized'],
    routes: [
      { path: '/landspace', redirect: '/landspace/yhgl' },
      //养护管理
      {
        path: '/landspace/yhgl',
        name: 'yhgl',
        component: './landspace/Yhgl',
      },
    ],
  },
  // 市政
  {
    path: '/municipal',
    name: 'municipal',
    component: '../layouts/LayoutMunicipal',
    Routes: ['src/pages/Authorized'],
    routes: [
      // dashboard
      { path: '/municipal', redirect: '/municipal/maintain' },
      {
        path: '/municipal/maintain',
        name: 'maintain',
        component: './Municipal/Maintain',
      },
      //养护管理
      {
        path: '/municipal/yhgl',
        name: 'yhgl',
        component: './Municipal/Yhgl',
      },
      //数据上报
      {
        path: '/municipal/maintain',
        name: 'maintain',
        component: './Municipal/Maintain',
      },
      //统计分析
      {
        path: '/municipal/statistic',
        name: 'statistic',
        component: './Municipal/statistic',
      },
      //维修管理
      {
        path: '/municipal/repair',
        name: '维修管理',
        component: './Municipal/Repair',
      },

      {
        path: '/municipal/repair/desc',
        name: '维修详情',
        component: './Municipal/components/Repair/RepairDesc',
      },
      //应急管理
      {
        path: '/municipal/emergency',
        name: '维修管理',
        component: './Municipal/Emergency',
      },
      {
        path: '/municipal/emergency/edit/:id',
        name: '编辑',
        component: './Municipal/components/Emergency/EmgergencyPerson/EmergEditPerson',
      },
      {
        path: '/municipal/emergency/editEquip/:id',
        name: '编辑',
        component: './Municipal/components/Emergency/EmgergencyEquip/EmergEditEquip',
      },
      {
        path: '/municipal/emergency/addCar/:id',
        name: '车辆',
        component: './Municipal/components/Emergency/EmgergencyEquip/EmergEquipCar',
      },
      {
        path: '/municipal/emergency/addOther/:id',
        name: '其他',
        component: './Municipal/components/Emergency/EmgergencyEquip/EmergEquipOther',
      },
      //考核评价
      {
        path: '/municipal/assessment',
        name: '考核评价',
        component: './Municipal/Assessment',
      },
      {
        path: '/municipal/assessment/assessDesForPip/:company/:year/:month/:type',
        name: '雨水管道考核详情',
        component: './Municipal/components/Assessment/AssessDesForPip',
      },
      {
        path: '/municipal/assessment/assessDesForRoad/:company/:year/:month/:type',
        name: '道路桥梁考核详情',
        component: './Municipal/components/Assessment/AssessDesForRoad',
      },
      {
        path: '/municipal/assessment/assessCheckedList/:company/:year/:month/:type',
        name: '查看考核评价',
        component: './Municipal/components/Assessment/AssessChildList',
      },
       //工程联系单
      {
        path: '/municipal/projectcontact/details',
        name: '工程联系单详情',
        component: './Municipal/components/ProjectContact/ProjectContactCheck',
      },
      {
        path: '/municipal/projectcontact',
        name: '工程联系单',
        component: './Municipal/ProjectContact',
      },
      {
        component: '404',
      },
    ],
  },
  {
    name: '异常处理',
    icon: 'warning',
    path: '/exception',
    hideInMenu: true,
    routes: [
      // exception
      {
        path: '/exception/403',
        name: '暂无权限',
        component: './Exception/403',
      },
      {
        path: '/exception/404',
        name: '页面缺失',
        component: './Exception/404',
      },
      {
        path: '/exception/500',
        name: '服务端异常',
        component: './Exception/500',
      },
      {
        path: '/exception/trigger',
        name: '异常触发',
        hideInMenu: true,
        component: './Exception/TriggerException',
      },
    ],
  },
];
